import request from '@/utils/request'


// 查询词补全
export function searchCompletion(data) {
  return request({
    url: '/system/esRetrieval/searchCompletion',
    method: 'post',
    data: data
  })
}

// 查询列表
export function searchList(data) {
  return request({
    url: '/system/esRetrieval/search',
    method: 'post',
    data: data
  })
}

// 查询列表
export function detailFields(data) {
  return request({
    url: '/system/esRetrieval/getDetailFields',
    method: 'post',
    data: data
  })
}

// 查询分面
export function searchFacet(data) {
  return request({
    url: '/system/esRetrieval/facet',
    method: 'post',
    data: data
  })
}
